/*
 * @Autor: lh
 * @Date: 2023-09-26 14:26:16
 * @LastEditors: lh
 * @LastEditTime: 2024-03-08 12:01:29
 * @Description:
 */
import { request } from "@/utils/service"

/** 通过主键查询试卷详情 */
export function examQuestionsSelectOne(data: any) {
  return request({
    url: `/examQuestions/selectAll`,
    method: "post",
    data
  })
}

/** 通过主键查询试卷信息 */
export function examQuestionsSelectInfo(id: any) {
  return request({
    url: `/userExam/selectOne/${id}`,
    method: "get"
  })
}

/** 考试完成后 设置 用户考试记录 */
export function insertUserExamRecord(data: any) {
  return request({
    url: `/userExamRecord/insertUserExamRecord`,
    method: "post",
    data
  })
}
